/*
 * ChainedExpr.scala
 */

package acorn.jash

final class ChainedExpr(val expr:Expr) extends Expr {

  override def eval:Int = {
    var rt = expr eval;
    if (next != null) rt = next eval;
    rt
  }

  var next:ChainedExpr = null
}

